GUI Help > attachGadget

attachGadget
attachGadget handle target, int tabPage, handle attach

Attaches a gadget to a 'page' of a tab gadget. This means that when the user selects the tab, the attached gadget will be shown, and when the user selects a different tab, the attached gadget will be hidden. This allows you to easily create a tab-based dialog where different gadgets are shown depending on which tab is selected.

If a gadget is attached to a tab, it must be detached using detachGadget before it is deleted.

Parameters:
target  Handle of the tab gadget
tabPage  The index of the tab which the gadget is to be attached to
attach  The handle of the gadget which is to be attached.